/**
 * Created by zgf on 2018/3/5.
 */
import * as types from './mutation-types'

const mutations = {
  [types.SET_RECOMMENDROUTER](state, recommendrouter) {
    state.recommendrouter = recommendrouter
  },
  [types.SET_PLAYLIST](state, playlist) {
    state.playlist = playlist
  },
  [types.SET_PLAYING](state, flag) {
    state.playing = flag
  },
  [types.SET_FULL_SCREEN](state, flag) {
    state.fullScreen = flag
  },
  [types.SET_PLAYING_LIST](state, list) {
    state.playingList = list
  },
  [types.SET_SEQUENCE_LIST](state, list) {
    state.sequenceList = list
  },
  [types.SET_CURRENT_INDEX](state, index) {
    state.currentIndex = index
  },
  [types.SET_MODE](state, mode) {
    state.mode = mode
  }
}

export default mutations
